<script setup>
import {inject} from "vue";

let info = inject("info", "Hello, World!");
</script>

<template>
  <h3>这是孙组件</h3>
  <div>{{ info }}</div>
</template>

<style scoped>

</style>